package site.codeyin.javautils.controller.req;

import lombok.Data;
import site.codeyin.javautils.controller.excel.DemoData;
import site.codeyin.javautils.controller.validate.DateRangeValid;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * @author <a href="https://github.com/liangcheng2221">yinjie</a>
 * @date 2024-09-07 14:32
 */
@Data
@DateRangeValid(begin = "begin", end = "end")
public class TestReq {
    @NotBlank(message = "用户id不能为空")
    private String id;

    @Size(min = 6,max = 10)
    private String test;

    @NotEmpty
    @Valid
    private List<DemoData> demoDataList;


    private Date begin;

    private Date end;

}
